package com.kcwl.carrier.infrastructure.repository.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kcwl.carrier.domain.entity.VehicleTrailerInfo;
import com.kcwl.carrier.domain.entity.VehicleTrailerInfoVo;
import com.kcwl.carrier.infrastructure.repository.po.VehicleTrailerPO;
import com.kcwl.carrier.interfaces.query.PlateNumberQuery;
import com.kcwl.carrier.interfaces.query.VehicleTrailerQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Author: mengxc
 * @Date: 2021/6/15 下午5:32
 */
@Mapper
public interface VehicleTrailerMapper extends BaseMapper<VehicleTrailerPO> {
    IPage<VehicleTrailerInfo> getTrailerList(Page<VehicleTrailerInfo> page,@Param("query") PlateNumberQuery query);

    IPage<VehicleTrailerInfoVo> queryVehicleTrailerPage(Page<VehicleTrailerInfoVo> page, @Param("query")VehicleTrailerQuery query);

}
